{% extends "base.html" %}


{% block main %}

  {% if form.errors %}
  <p class="errors">Please correct the errors below: {{ form.non_field_errors }}</p>
  {% endif %}

  <h1>Edit your profile</h1>
  <form method="post" action="/account/edit_profile" class="wide">
    {% csrf_token %}
    <p>
      <label for="id_name">Your name:</label>
      {% if form.name.errors %}
        <p class="errors">{{ form.name.errors.as_text }}</p>
      {% endif %}
      {{ form.name }}
    </p>
    <p>
      <label for="id_email">Your email address:</label>
      {% if form.email.errors %}
        <p class="errors">{{ form.email.errors.as_text }}</p>
      {% endif %}
      {{ form.email }}
    </p>
    <p class="submit"><input type="submit" value="Save &rarr;"></p>
{% endblock %}

